<%@ page import="cn.lily.inst.web.security.SystemManager" %>
<%
	request.setCharacterEncoding("UTF-8");	
	SystemManager om = new SystemManager();
	boolean isLogin = true;
	String errors ="";
	try 
	{
		isLogin = om.login(request);
	} catch ( Exception e ) 
	 {
	      errors = e.getMessage();
	      isLogin = false;
	 }
	/**
	if ( !"0".equals(isLogin) ) {
	   	response.getWriter().println("<script language=\"javascript\">if(top){ top.location.href='" + SystemManager.getExitUrl()+"'; } else { location.href = '" + SystemManager.getExitUrl()+"';} </script>");
	}
	*/
	
		
	if ( !isLogin ) {%>
	     <jsp:forward page="/index3.jsp">
	   		<jsp:param   name= "login"   value= "false"/> 
       		<jsp:param   name= "msg"   value="<%=errors%>"/>  
	     </jsp:forward>
<%   }%>


